package org.yaac.shared;

/**
 * @author Max Zhu (thebbsky@gmail.com)
 *
 *	generic exception thrown from RPC server side
 *
 */
public class YaacException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String errorCode;

	private String errorMsg;
	
	/**
	 * used by GWT
	 */
	@SuppressWarnings("unused")
	private YaacException() {}
	
	public YaacException(String errorCode, String errorMsg) {
		super();
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public String getErrorMsg() {
		return errorMsg;
	}
}
